package com.ansuenjob.jsonBuilder;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.ansuenjob.model.Job;
import com.ansuenjob.vo.JobVO;


public class JobFunctions {
	public static List<Job> getJobs(JSONArray jsonArray) throws JSONException {
		JobBuilder builder = new JobBuilder();
		List<Job> jobst = new ArrayList<Job>();
		for (int i = 0; i < jsonArray.length(); i++) {
			jobst.add(builder.buildJson(jsonArray.getJSONObject(i)));
		}
		return jobst;
	}
}
